﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Miao
{
    public class Graphic_Single : Graphic
    {
        public override void Init(GraphicData graphicData)
        {

            mainTex = ModContentTexture.Get(graphicData.texPath);
            Shader shader = Shader.Find("Sprites/Default");
            //Shader shader = Shader.Find("Universal Render Pipeline/Unlit");
            MaterialRequest materialRequest = new MaterialRequest();
            materialRequest.mainTex = mainTex;
            materialRequest.shader = shader;
            materialRequest.color = graphicData.color;

            this.MatSingle  = MaterialPool.MatFrom(materialRequest);

        }


    }
}
